<?php
namespace common\records;
use Yii;
use yii\db\ActiveRecord;

class Chargement extends ActiveRecord
{
    /**
    ** @return string 返回该AR类关联的数据表名
    **/
    public static function tableName()
    {
        return 'chargement';
    }

    public function rules()
    {
        return [
            [['uid','rule_id','create_time'],'required'],
            [['uid','create_time','pay_time','out_trade_no','prepay_id'],'string'],
            [['coin','money','status','rule_id'],'integer'],
            ];
    }
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'uid' => '充值用户',
            'money' => '充值金额',
            'coin' => '兑换娃娃币',
            'create_time' => '发起时间',
            'pay_time' => '支付时间',
            'status' => '状态',
            ];
    }

}
